# config/execute_operation_config.py

operations_config = {
    "operations": [
        {
            "name": "ProblemsetQuestionList",
            "params": {
                "category_slug": "",
                "skip": 0,
                "limit": 50,
                # filters: {status: "AC"}
                # filters: {status: "TRIED"}
                # filters: {status: "NOT_STARTED"}
                "filters": {},
            },
            'methods': {
                'fetch_all_data': ""
            }
        },
        {
            "name": "UserProfileQuestions",
            "params": {
                "status": "FAILED",
                "skip": 0,
                "first": 20,
                "sortField": "LAST_SUBMITTED_AT",
                "sortOrder": "DESCENDING",
                "difficulty": []
            },
            'methods': {
                'fetch_all_data': ""
            }
        },
        {
            "name": "QuestionTopicsList",
            "params": {
                "questionSlug": "two-sum",
                "skip": 0,
                "first": 15,
                "orderBy": "DEFAULT",
                "userInput": "",
                "tagSlugs": []
            },
            'methods': {
                'execute_for_multiple_slugs': "",
            }
        },
        {
            "name": "DiscussTopic",
            "params": {
                "slug": "add-two-numbers"
            },
            'methods': {
                'fetch_all_data': ""
            }
        },
        {
            "name": "QuestionTitle",
            "params": {
                "titleSlug": "two-sum"
            },
            'methods': {
                'fetch_all_data': ""
            }
        },
        {
            "name": "QuestionContent",
            "params": {
                "titleSlug": "two-sum"
            },
            'methods': {
                'fetch_all_data': ""
            }
        },
        {
            "name": "QuestionTranslations",
            "params": {
                "titleSlug": "two-sum"
            },
            'methods': {
                'fetch_all_data': ""
            }
        },
        # {
        #     "name": "QuestionHints",
        #     "params": {
        #         "titleSlug": "two-sum"
        #     },
        #     'methods': {
        #         'fetch_all_data': ""
        #     }
        # },
        {
            "name": "SimilarQuestion",
            "params": {
                "titleSlug": "two-sum"
            },
            'methods': {
                # 'fetch_all_data': ""
            }
        },
        {
            "name": "GetStudyPlanCatalogs",
            "params": {},
            'methods': {
                # 'execute': ""
            }
        },
        {
            "name": "QuestionEditorData",
            "params": {
                "titleSlug": "two-sum"
            },
            'methods': {
                'fetch_all_data': ""
            }
        },
        {
            "name": "ConsolePanelConfig",
            "params": {
                "titleSlug": "two-sum"
            },
            'methods': {
                'fetch_all_data': ""
            }
        },
        {
            "name": "Submission",
            "params": {
                "question_id": "1",
                "typed_code": "\nclass Solution(object):\n    def twoSum(self, nums, target):\n        \"\"\"\n        :type nums: List[int]\n        :type target: int\n        :rtype: List[int]\n        \"\"\"\n        # 遍历列表\n        for i in range(len(nums)):\n            # 计算需要找到的下一个目标数字\n            res = target-nums[i]\n                # 遍历剩下的元素，查找是否存在该数字\n            if res in nums[i+1:]:\n                # 若存在，返回答案。这里由于是两数之和，可采用.index()方法\n                # 获得目标元素在nums[i+1:]这个子数组中的索引后，还需加上i+1才是该元素在nums中的索引\n                return [i, nums[i+1:].index(res)+i+1]",
                "lang": "python3",
                "study_plan_slug": ""
            },
            "methods": {
                "fetch_all_data": "",
            }
        },
        {
            "name": "SubmissionList",
            "params": {
                "questionSlug": "two-sum",
                "offset": 0,
                "limit": 20,
                "lastKey": None,
                "lang": None,
                "status": None
            },
            "methods": {
                # 'fetch_data': 'graphql',
                "fetch_all_data": "",
            }
        },
        {
            "name": "MemoryDistribution",
            "params": {},
            "methods": {
                "fetch_all_data": ""
            }
        },
        {
            "name": "DistributedSubmission",
            "params": {
                "titleSlug": "two-sum",
                "distributionType": "MEMORY",
                "lang": "python3",
                "nextId": "",
                "observerId": "481993149",
                "value": 112,
                "maxValue": 225,
                "minValue": 0
            },
            "methods": {
                # "fetch_data": "",
                "fetch_all_data": ""
            }
        },
        # 在这里可以添加更多操作
    ]
}
